package com.freewater.library.lending.book.application.command;

import lombok.Getter;
import org.apache.commons.lang3.Validate;

@Getter
public class CheckOutBookInstanceCommand {
    /**
     * 二维码
     */
    private final String qrCode;
    /**
     * 读者Id
     */
    private final Long readerId;

    public CheckOutBookInstanceCommand(String qrCode, Long readerId) {
        Validate.notBlank(qrCode, "二维码不能为空");
        Validate.notNull(readerId, "读者ID不能为空");
        this.qrCode = qrCode;
        this.readerId = readerId;
    }
}
